﻿<Window x:Class="KTool2.MainWindow" Name="window"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="KTool" Height="71" Width="226"
        FontFamily='Lucida Sans Unicode'
        WindowStyle="None" 
        ResizeMode="NoResize" 
        ShowInTaskbar="False" 
        Topmost="True"
        MouseDown="window_MouseDown" 
        Activated="window_Activation" 
        Deactivated="window_Activation"
        KeyUp="window_KeyUp" 
        KeyDown="window_KeyDown"
        LocationChanged="window_LocationChanged">
    <Window.Resources>
        <Style TargetType="Image">
            <EventSetter Event="MouseEnter" 
                         Handler="Component_MouseEnter"/>
            <EventSetter Event="MouseLeave" 
                         Handler="Component_MouseLeave"/>
            <EventSetter Event="MouseDown" 
                         Handler="Component_MouseDown"/>
            <EventSetter Event="MouseUp" 
                         Handler="Component_MouseUp"/>
        </Style>
        <Style TargetType="Grid">
            <EventSetter Event="MouseEnter" 
                         Handler="Component_MouseEnter"/>
            <EventSetter Event="MouseLeave" 
                         Handler="Component_MouseLeave"/>
        </Style>
        <Style TargetType="MenuItem">
            <EventSetter Event="Click" 
                         Handler="menuItem_Click"/>
        </Style>
    </Window.Resources>
    <Window.ContextMenu>
        <ContextMenu Name="cntxtMenu">
            <MenuItem Name="mnuiJPNCategories" 
                      Header="JPN Categories"></MenuItem>
            <MenuItem Name="mnuiTranslateCondition" 
                      Header="Translate condition"></MenuItem>
            <MenuItem Name="mnuiTextChangeTime" 
                      Header="Text change time"></MenuItem>
            <MenuItem Name="mnuiZoom" 
                      Header="Zoom">
                <MenuItem Name="mnuiZoomIn"
                          Header="Zoom In"/>
                <MenuItem Name="mnuiZoomOut" 
                          Header="Zoom Out" 
                          IsEnabled="False"/>
            </MenuItem>
            <Separator></Separator>
            <MenuItem Name="mnuiSearch" 
                      Header="Search"></MenuItem>
            <MenuItem Name="mnuiHiraganaTest" 
                      Header="Hiragana test"></MenuItem>
            <Separator></Separator>
            <MenuItem Name="mnuiAutoStart" 
                      Header="Auto start with windows"></MenuItem>
            <Separator></Separator>
            <MenuItem Name="mnuiAbout" 
                      Header="About"></MenuItem>
        </ContextMenu>
    </Window.ContextMenu>
    <Grid Name="grdMain">
        <Grid.RowDefinitions>
            <RowDefinition Height="21"></RowDefinition>
            <RowDefinition Height="*"></RowDefinition>
        </Grid.RowDefinitions>
        <StackPanel Orientation="Horizontal" Margin="10, 0, 0, 0">
            <StackPanel.Resources>
                <Style TargetType="Image">
                    <Setter Property="Height" 
                            Value="10"></Setter>
                    <Setter Property="Width" 
                            Value="10"></Setter>
                    <Setter Property="VerticalAlignment" 
                            Value="Center"></Setter>
                    <Setter Property="Margin" 
                            Value="1"></Setter>
                    <EventSetter Event="MouseUp" 
                                 Handler="Component_MouseUp"/>
                    <EventSetter Event="MouseEnter" 
                                 Handler="Component_MouseEnter"/>
                    <EventSetter Event="MouseLeave" 
                                 Handler="Component_MouseLeave"/>
                    <EventSetter Event="MouseDown" 
                                 Handler="Component_MouseDown"/>
                </Style>
            </StackPanel.Resources>
            <Label Margin="0" FontSize="10" VerticalAlignment="Center">
                Mem rate:
            </Label>
            <Image Name="rate1" ></Image>
            <Image Name="rate2" ></Image>
            <Image Name="rate3" ></Image>
            <Image Name="rate4" ></Image>
            <Image Name="rate5" ></Image>
        </StackPanel>
        <Image HorizontalAlignment="Right"
               Margin="0, 0, 48, 0" 
               Height="17" 
               VerticalAlignment="Top" 
               Name="btnQuestion"></Image>
        <Image HorizontalAlignment="Right"
               Margin="0, 0, 5, 0" 
               Height="17" 
               VerticalAlignment="Top" 
               Name="btnClose"></Image>

        <Grid Name="grdScreen" 
              Grid.Row="1" 
              HorizontalAlignment="Center" 
              Margin="0"
              Height="44" 
              Width="213">
            <TextBlock Name="txtblkKanji" 
                       VerticalAlignment="Center" 
                       HorizontalAlignment="Center"
                       Foreground="#4e5045" 
                       FontSize="25" 
                       FontWeight="Bold">
                開始
            </TextBlock>
            <Image Name="btnNext" 
                   Height="11" 
                   Width="11"
                   HorizontalAlignment="Right" 
                   Margin="10"></Image>
            <Image Name="btnPrevious" 
                   Height="11" 
                   Width="11"
                   HorizontalAlignment="Left" 
                   Margin="10" 
                   IsEnabled="False"
                   Opacity="0.5"></Image>
        </Grid>
    </Grid>
</Window>
